import request from '@/utils/request'

// base
const base = process.env.VUE_APP_BASE_API6 + '/mapping/finelineCategory'

export function findBuyerForFineLine(params) {
  return request({
    url: base + '/findBuyerForFineLine',
    method: 'get',
    params
  })
}

export function queryFineLineListByName(val) {
  return request({
    url: base + '/queryFineLineListByName',
    method: 'post',
    data: val
  })
}

export function batchAdd(val) {
  return request({
    url: base + '/batchAdd',
    method: 'post',
    data: val
  })
}

export function batchDelete(val) {
  return request({
    url: base + '/batchDelete',
    method: 'post',
    data: val
  })
}

export function batchUpdate(val) {
  return request({
    url: base + '/batchUpdate',
    method: 'post',
    data: val
  })
}

export function relieveBind(val) {
  return request({
    url: base + '/relieveBind',
    method: 'post',
    data: val
  })
}

export function getCategoryMappingByFinelineNbr(val) {
  return request({
    url: base + '/getCategoryMappingByFinelineNbr',
    method: 'post',
    data: val
  })
}
